//
//  UserPhotobindingController.m
//  CheekiOS
//
//  Created by mac on 2017/6/22.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "UserPhonebindingController.h"
#import "UserPhoneChangeController.h"
@interface UserPhonebindingController ()

@end

@implementation UserPhonebindingController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setNavgationBarHiddenNo];
    self.title = @"更换手机号";
    
    UIImageView *imgView = [UIImageView new];
    imgView.image = [UIImage imageNamed:@"p_center_sz_button_ipone"];
    imgView.frame = CGRectMake(self.view.centerX-25, 50, 50, 50);
    [self.view addSubview:imgView];
    
    UILabel *textLab = [[UILabel alloc] initWithFrame:CGRectMake(0, imgView.bottom+25, KScreenWidth, 25)];
    textLab.text = @"已绑定的手机号";
    textLab.textColor = ColorI(0x2e353f);
    textLab.font = Font(15);
    textLab.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:textLab];
    
    UILabel *photoLab = [[UILabel alloc] initWithFrame:CGRectMake(0, textLab.bottom+22, KScreenWidth, 25)];
    photoLab.text = self.mobileStr;
    photoLab.textColor = [UIColor blackColor];
    photoLab.font = Font(15);
    photoLab.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:photoLab];
    
    
    
    UIButton *  _btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [_btn addTarget:self action:@selector(didClickReal) forControlEvents:UIControlEventTouchUpInside];
    [_btn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [_btn setTitle:@"更换手机号" forState:UIControlStateNormal];
    _btn.backgroundColor = Colorbackground;
    _btn.frame = CGRectMake(24, photoLab.bottom+60, KScreenWidth-48, 50);
    _btn.layer.cornerRadius=25;
    _btn.titleLabel.font = FontP(15);
    
    [self.view addSubview:_btn];

    
}

-(void)didClickReal{
    UserPhoneChangeController *vc = [[UserPhoneChangeController alloc] init];
    vc.typeStr = @"0";
    [self.navigationController pushViewController:vc animated:YES];
}

@end
